﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class jisuanlei
    {
        public double banjin;
        public int chang;
        public int kuang;

        public jisuanlei()
        {
        }

        public jisuanlei(double banjin, int chang, int kuang)
        {
            this.banjin = banjin;
            this.chang = chang;
            this.kuang = kuang;
        }

        public void yuan(double banjin)
        {
            //double yuanmj = 3.14 * (this.banjin * this.banjin);
            //Console.WriteLine("圆的面积为:"+yuanmj);

            Console.WriteLine("圆的面积为:" + 3.14 * (this.banjin * this.banjin));
        }
        public void cfx(int chang, int kuang)
        {
            //int cfxmj = (this.chang * this.kuang);
            //Console.WriteLine("长方形的面积为:"+cfxmj);
            Console.WriteLine("长方形的面积为:" + (this.chang * this.kuang));
        }
    }
}
